/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.stubs;

import nominalitzacions.ui.Help;
import java.awt.event.MouseEvent;
import java.io.IOException;
import java.net.URL;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author daniel.camacho.rodriguez
 */
public class HelpStub  extends Help  {

    private ControladorHelpStub iControlador;

    public HelpStub(ControladorHelpStub controlador) {
        initComponents();
        iControlador = controlador;
    }

    protected void CancelarMouseClicked(MouseEvent evt){
        iControlador.NoShowWindow();
    }

    protected void OpenMainHelp(String url){
        try {
            iControlador.open("iep");
        }
        catch (IOException ex) {
            Logger.getLogger(HelpStub.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    protected void OpenMainHelp(URL url){
        try {
            iControlador.open(url);
        }
        catch (IOException ex) {
            Logger.getLogger(HelpStub.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

}
